<extend name="Layout/page_detail" />
<block name="content">
    {:W('PageHeader/adv_search',array('name'=>$folder_name,'search'=>'M'))}
    <form method="post" name="form_adv_search" id="form_adv_search">
        <div class="adv_search panel panel-default  display-none"  id="adv_search">
            <div class="panel-heading">
                <div class="row">
                    <h4 class="col-xs-6">高级搜索</h4>
                    <div class="col-xs-6 text-right">
                        <a  class="btn btn-sm btn-info" onclick="submit_adv_search();">搜索</a>
                        <a  class="btn btn-sm " onclick="close_adv_search();">关闭</a>
                    </div>
                </div>
            </div>
            <div class="panel-body">
                <div class="form-group col-sm-6">
                    <label class="col-sm-4 control-label" for="li_name">名称：</label>
                    <div class="col-sm-8">
                        <input  class="form-control" type="text" id="li_name" name="li_name" >
                    </div>
                </div>

                <div class="form-group col-sm-6">
                    <label class="col-sm-4 control-label" for="li_subject">主题：</label>
                    <div class="col-sm-8">
                        <input  class="form-control" type="text" id="li_subject" name="li_subject" >
                    </div>
                </div>

                <div class="form-group col-sm-6">
                    <label class="col-sm-4 control-label" for="eq_holder">主持人：</label>
                    <div class="col-sm-8">
                        <input  class="form-control" type="text" id="eq_holder" name="eq_holder" >
                    </div>
                </div>

                <div class="form-group col-sm-6">
                    <label class="col-sm-4 control-label" for="be_start_time">开始时间：</label>
                    <div class="col-sm-8">
                        <div class="input-daterange input-group" >
                            <input type="text" class="input-sm form-control text-center" id="be_start_time" name="be_start_time" />
                            <span class="input-group-addon">-</span>
                            <input type="text" class="input-sm form-control text-center" id="en_start_time" name="en_start_time" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <div class="ul_table">
        <ul>
            <li class="thead">
                <div class="pull-left">
                    <label class="inline pull-left col-3">
                        <input class="ace" type="checkbox" name="id-toggle-all" id="id-toggle-all" />
                        <span class="lbl"></span></label>
                    <span class="col-10"> 名称 </span>
                </div>
                <div class="pull-right">
                    <span class="col-10  "> 主持人 </span>
                    <span class="col-15  "> 开始时间 </span>
                    <span class="col-6  "> 操作 </span>
                </div>
                <div class="auto">
                    主题
                </div>
            </li>
            <empty name="list">
                <ul>
                    <li class="no-data">
                        没找到数据
                    </li>
                    <else/>
                    <form method="post" action="" name="form_data" id="form_data">
                        <foreach name="list" item="vo">
                            <li class="tbody" >
                                <div class="pull-left">
                                    <label class="inline pull-left col-3">
                                        <input class="ace" type="checkbox" name="id[]" value="{$vo.id}" />
                                        <span class="lbl"></span></label>
                                    <span class="col-10"> {$vo.meet_name} </span>
                                </div>
                                <div class="pull-right">
                                    <span class="col-10"> {$vo.holder} </span>
                                    <span class="col-15 "> {$vo.start_time|substr=0,16} </span>
                                    <span class="col-6  "> <a href="javascript:open_meeting('{$vo.meet_no}')" >进入会议</a> </span>
                                </div>
                                <div class="auto">
                                    {$vo.subject}
                                    <eq name="vo.subject|strlen" value="0">
                                        无主题
                                    </eq>
                                </div>
                            </li>
                        </foreach>
                    </form>
                    <div class="pagination">
                        {$page}
                    </div>
                </ul>
            </empty>
        </ul>
    </div>
</block>
<block name="js">
    <script type="text/javascript">
        function openURL(_url){
            var openobj = window;
            if(typeof(window.dialogArguments) == 'object'){
                openobj = window.dialogArguments;
            }
            openobj.open(_url,"_blank");
        }
        function open_meeting(roomno){
           sendAjax("{:U('domeet')}", "roomno=" + roomno + "&holder_id=" + '{$vo.holder_id}', function(data) {
                openURL("meeting/zlchat.php");
           });
            /*
            <?php
            if(isset($_COOKIE['chatconnStr']) && !empty($_COOKIE['chatconnStr'])) {
                $connStr = $_COOKIE['chatconnStr'];
                echo $connStr;
            }
            ?>
            */
        }
        $(document).ready(function() {
            set_return_url();
        });
    </script>
</block>